home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-02-15 | 4.1 KB | 159 lines | [TEXT/ttxt] |
- .TH snmp 1 "by HNS-LDV-TUM" "snmp access"
- .SH NAME
- snmpget \- send GET request
- .br
- snmpnext \- send GETNEXT request
- .br
- snmpset \- send SET request
- .br
- snmptable \- retrieve and display full tables
- .br
- snmptrap \- send TRAP to manager
- .br
- snmpwalk \- retrieve and display full subtrees
-
- .SH SYNOPSIS
- snmpget [ -dUovt ] [ -a agent:port:protocol ] [ -c community ] [ -w timeout ] { objid | -u url } ...
- .br
- snmpnext [ -dUovt ] [ -a agent:port:protocol ] [ -c community ] [ -w timeout ] { objid | -u url } ...
- .br
- snmpset [ -dUovt ] [ -a agent:port:protocol ] [ -c community ] [ -w timeout ] { objid | -u url } type value ...
- .br
- snmptable [ -dUovt ] [ -a agent:port:protocol ] [ -c community ] [ -w timeout ] [ -r retries ] objid | -u url
- .br
- snmptrap [ -dUovt ] [ -a agent:port:protocol ] [ -c community ] [ -w timeout ] enterprise agent [ { objid | -u url } type value ... ]
- .br
- snmpwalk [ -dUovt ] [ -a agent:port:protocol ] [ -c community ] [ -w timeout ] [ -r retries ] [ objid | -u url ]
-
- .SH DESCRIPTION
- These programs can be called directly at the shell prompt to send SNMP
- requests to agents for 'barefooted' network management.
-
- .SH OPTIONS
- .SS -a agent:port:protocol
- Specifies the agent to access.
- Its value defaults to the contents of the environment variable AGENT
- if defined
- or 'localhost:snmp:udp'.
-
- .SS -c community
- Sets the community.
- The default is 'public'.
-
- .SS -w timeout
- Defines a timeout to wait for a response.
- The timeout is specified in seconds. Fractions with a resolution of 1 ms are permitted.
- The default is 5 seconds.
-
- .SS -r retries
- Defines the number of retries for the walk operation until the client gives up.
- The default is 3.
-
- .SS -g generic
- Defines the generic trap number (between 0 and 6).
- The default is 0.
-
- .SS -s specific
- Defines the specific trap number.
- The default is 0.
-
- .SS -T timestamp
- Defines the timestamp of the trap (in TIMETICKS).
- The default is 0.
-
- .SS -d
- Dump all SNMP protocol data units sent and received on stderr.
-
- .SS -u
- Dump all UDP service data units sent and received on stderr.
-
- .SS -o
- Print object identifier of responses.
-
- .SS -v
- Print value of responses.
-
- .SS -t
- Print type of responses.
- If neither -o, -v, nor -t is specified, -otv is assumed.
-
- .SS enterprise
- Specifies the enterprise OBJECT IDENTIFIER within a TRAP PDU.
-
- .SS agent
- Specifies the agent address within a TRAP PDU.
-
- .SS objid
- Specifies the object identifier to be accessed.
- For snmpwalk, this identifies the root of the subtree.
- For
- snmptable it specifies the TABLE_ENTRY node or the parent node of
- a group of non-tabular elements. Otherwise, strange formatting
- may occur.
-
- .SS -u url
- may be used to specify the agent and the object identifier in a
- single argument. The rules are as follows: The protocol must be 'snmp',
- the host can be specified to override the host already
- defined by an earlier -a or -u option and the object identifier
- is separated by a slash (/). The request is sent to the last
- agent specified.
-
- .SS type
- Specifies the type of the value to be sent in a SET request or TRAP.
- Permitted types are (case insensitive):
- .br
- null, integer, gauge, counter, timeticks, ipaddr, octstr, objid.
-
- .SS value
- Specifies the value to be sent in a SET request or TRAP.
- If the type is null, no value field is expected.
-
- .SH EXAMPLES
-
- snmpget -a localhost:snmp:udp 1.3.6.1.2.1.1.4
- .br
- snmpset -a localhost:snmp:udp 1.3.6.1.2.1.1.4.0 octstr "The new system"
- .br
- AGENT=myhost:snmp:udp; export AGENT
- .br
- snmpset -c set-community 1.3.6.1.4.1.860.1.1 integer 123
- .br
- snmpnext ''
- .br
- snmpwalk -r 5 1.3.6.1.4.1.860
- .br
- snmpwalk
- .br
- snmptable 1.3.6.1.2.1.2.2.1
- .br
- snmptable 1.3.6.1.2.1.1
- .br
- snmptable -a localhost:snmp:udp -ov 1.3.6.1.2.1.3.1.1
- .br
- snmptable -ov -u snmp://localhost/1.3.6.1.2.1.3.1.1
- .br
- snmptrap -w 0 -g 1 -a manager:162:udp 1.3.6.1.4.1.860 localhost
- .br
- snmpwalk -u snmp://myhost/1.3.6.1.2.1.3.1.1
- .br
- snmpwalk -u snmp:1.3.6.1.2.1.3.1.1
-
- .SH ENVIRONMENT
- AGENT may be set to override the default of the -a option
-
- .SH SEE ALSO
- SNMPt(3SNMPt).
-
- .SH BUGS
- There is always one more bug (Murphy).
-
- .SH AUTHOR
- H. Nikolaus Schaller
- .br
- Lehrstuhl fuer Datenverarbeitung
- .br
- TU-Muenchen
- .br
- hns@ldv.e-technik.tu-muenchen.de
-